package org.dromara.system.domain.bo;

import org.dromara.system.domain.WbGoodsListInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 货物清单业务对象 wb_goods_list_info
 *
 * @author Lion Li
 * @date 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WbGoodsListInfo.class, reverseConvertGenerate = false)
public class WbGoodsListInfoBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分标编号
     */
    @NotBlank(message = "分标编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subStandardId;

    /**
     * 分标名称
     */
    private String subStandardName;

    /**
     * 包名称
     */
    private String bagName;

    /**
     * 分包编号
     */
    @NotBlank(message = "分包编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bagId;

    /**
     * 项目单位名称
     */
    private String itemCompanyName;

    /**
     * 需求单位名称
     */
    private String demandCompanyName;

    /**
     * 物资名称
     */
    @NotBlank(message = "物资名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialName;

    /**
     * 工程电压等级
     */
    private String engineerVoltageLevel;

    /**
     * 物资描述
     */
    private String materialDescription;

    /**
     * 单位
     */
    private String unit;

    /**
     * 数量
     */
    @NotBlank(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private String number;

    /**
     * 首批交货日期
     */
    @NotNull(message = "首批交货日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date firstDeliveryDate;

    /**
     * 最后一批交货时间
     */
    @NotNull(message = "最后一批交货时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastDeliveryDate;

    /**
     * 交货地点
     */
    private String deliveryLocation;

    /**
     * 交货方式
     */
    private String deliveryMethod;

    /**
     * 备注
     */
    private String remark;

    /**
     * 技术规范编码
     */
    private String technicalSpecificationCode;

    /**
     * 网省采购申请号
     */
    private String provincePurchaseRequisitionNumber;

    /**
     * 总部采购申请号
     */
    private String headPurchaseRequisitionNumber;

    /**
     * 物料编码
     */
    private String materialCode;

    /**
     * 扩展描述
     */
    private String extendDescription;

    /**
     * 扩展编码
     */
    private String extendCode;

    /**
     * 项目id
     */
    @NotBlank(message = "项目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String itemId;



}
